package com.youlu.campus.entity.data;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.HashMap;

@Getter
@Setter
@Document(collection = "university_statistics")
public class UniversityStatistics extends EntityBase {
//    @Indexed(unique = true)
    private String universityId;
    private String universityName;
    private Long signUpNum;
//    @Indexed
    private Long payNum;
    private Double gmv;
    private Double refundGmv;
    private Long refundNum;
    /**
     * 投诉数量
     */
    private Long complaintNum;
    /**
     * 省
     */
    private String province;
    /**
     * 复购数据
     */
    private HashMap<Integer, Long> repurchaseDatas = new HashMap<>();
    /**
     * 报名数据数据
     */
    private HashMap<Integer, Long> signUpDatas = new HashMap<>();
    /**
     * 学校总人数
     */
    private Long total;
    /**
     * 渗透率
     */
    private Double penetrationRatio;
    /**
     * 转化率
     */
    private Double conversionRatio;
    /**
     * 投诉率
     */
    private Double complaintRatio;
    /**
     * 退款率
     */
    private Double refundRatio;
    /**
     * 客单价(单位:元)
     */
    private Double ppc;


}
